package com.coc.ofhibernate.service;

import com.coc.ofhibernate.entity.database1.User;

import java.util.List;

public interface UserService {

    List<User> listAll();

    void insertUser(User user);

    User getUserById(int id);

    List<User> getUserListByName(String username);

}
